package ru.electron.menu.fragments;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import ru.electron.menu.R;
import ru.electron.menu.activities.OrderActivity;

public class BottomFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View layout = inflater.inflate(R.layout.bottom_fragment, container, false);
        Button orderButton = (Button) layout.findViewById(R.id.order);
        Button callButton = (Button) layout.findViewById(R.id.call);
        orderButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                 startActivity(new Intent(getActivity(), OrderActivity.class));
            }
        });
        return layout;
    }
}
